<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CPP11ThreadPool: BlockingQueue&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="CPP.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CPP11ThreadPool
   </div>
   <div id="projectbrief">C++11线程池</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classBlockingQueue-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">BlockingQueue&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列(FIFO)  
 <a href="classBlockingQueue.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="blockingqueue_8hpp_source.html">blockingqueue.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a42f821a61ba22ba27e6d1a434ab27eb2"><td class="memItemLeft" align="right" valign="top"><a id="a42f821a61ba22ba27e6d1a434ab27eb2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a42f821a61ba22ba27e6d1a434ab27eb2">BlockingQueue</a> ()</td></tr>
<tr class="memdesc:a42f821a61ba22ba27e6d1a434ab27eb2"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 默认构造函数 <br /></td></tr>
<tr class="separator:a42f821a61ba22ba27e6d1a434ab27eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a265931efcceccd5c99ac76178507559b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a265931efcceccd5c99ac76178507559b">BlockingQueue</a> (std::initializer_list&lt; T &gt; &amp;args)</td></tr>
<tr class="memdesc:a265931efcceccd5c99ac76178507559b"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 初始化列表构造函数  <a href="#a265931efcceccd5c99ac76178507559b">更多...</a><br /></td></tr>
<tr class="separator:a265931efcceccd5c99ac76178507559b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f2b1e4d887d77a81fddabd44c5cdbfd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a2f2b1e4d887d77a81fddabd44c5cdbfd">BlockingQueue</a> (const <a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;)</td></tr>
<tr class="memdesc:a2f2b1e4d887d77a81fddabd44c5cdbfd"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 拷贝构造  <a href="#a2f2b1e4d887d77a81fddabd44c5cdbfd">更多...</a><br /></td></tr>
<tr class="separator:a2f2b1e4d887d77a81fddabd44c5cdbfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d375ec5bec4f19887d0a4757d95e087"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a0d375ec5bec4f19887d0a4757d95e087">BlockingQueue</a> (const <a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;&amp;rh)</td></tr>
<tr class="memdesc:a0d375ec5bec4f19887d0a4757d95e087"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 复制构造函数  <a href="#a0d375ec5bec4f19887d0a4757d95e087">更多...</a><br /></td></tr>
<tr class="separator:a0d375ec5bec4f19887d0a4757d95e087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaee07bb9044a01b4cb0af75748795325"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#aaee07bb9044a01b4cb0af75748795325">operator=</a> (const <a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;)</td></tr>
<tr class="memdesc:aaee07bb9044a01b4cb0af75748795325"><td class="mdescLeft">&#160;</td><td class="mdescRight">operator= 赋值运算符  <a href="#aaee07bb9044a01b4cb0af75748795325">更多...</a><br /></td></tr>
<tr class="separator:aaee07bb9044a01b4cb0af75748795325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbe4440d6ed06d175925bba1f3c02312"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#abbe4440d6ed06d175925bba1f3c02312">operator=</a> (const <a class="el" href="classBlockingQueue.html">BlockingQueue</a> &amp;&amp;)</td></tr>
<tr class="memdesc:abbe4440d6ed06d175925bba1f3c02312"><td class="mdescLeft">&#160;</td><td class="mdescRight">operator= 赋值运算符  <a href="#abbe4440d6ed06d175925bba1f3c02312">更多...</a><br /></td></tr>
<tr class="separator:abbe4440d6ed06d175925bba1f3c02312"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c17143222334c4e4fe7035d4068bd0"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a93c17143222334c4e4fe7035d4068bd0">back</a> ()</td></tr>
<tr class="memdesc:a93c17143222334c4e4fe7035d4068bd0"><td class="mdescLeft">&#160;</td><td class="mdescRight">back 得到最后一个元素  <a href="#a93c17143222334c4e4fe7035d4068bd0">更多...</a><br /></td></tr>
<tr class="separator:a93c17143222334c4e4fe7035d4068bd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc86e513ba273cfa07cf5293806df412"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#adc86e513ba273cfa07cf5293806df412">front</a> ()</td></tr>
<tr class="memdesc:adc86e513ba273cfa07cf5293806df412"><td class="mdescLeft">&#160;</td><td class="mdescRight">front 得到第一个元素  <a href="#adc86e513ba273cfa07cf5293806df412">更多...</a><br /></td></tr>
<tr class="separator:adc86e513ba273cfa07cf5293806df412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c824f8d644951d25bed9825794ddeae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a1c824f8d644951d25bed9825794ddeae">put</a> (const T &amp;x)</td></tr>
<tr class="memdesc:a1c824f8d644951d25bed9825794ddeae"><td class="mdescLeft">&#160;</td><td class="mdescRight">put 插入  <a href="#a1c824f8d644951d25bed9825794ddeae">更多...</a><br /></td></tr>
<tr class="separator:a1c824f8d644951d25bed9825794ddeae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acedd6887a4af752440fb2dcd04292fa3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#acedd6887a4af752440fb2dcd04292fa3">put</a> (const T &amp;&amp;x)</td></tr>
<tr class="memdesc:acedd6887a4af752440fb2dcd04292fa3"><td class="mdescLeft">&#160;</td><td class="mdescRight">put 插入  <a href="#acedd6887a4af752440fb2dcd04292fa3">更多...</a><br /></td></tr>
<tr class="separator:acedd6887a4af752440fb2dcd04292fa3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac788baea510940fc40961a285bacc5f"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#aac788baea510940fc40961a285bacc5f">take</a> ()</td></tr>
<tr class="memdesc:aac788baea510940fc40961a285bacc5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">take 弹出队列元素  <a href="#aac788baea510940fc40961a285bacc5f">更多...</a><br /></td></tr>
<tr class="separator:aac788baea510940fc40961a285bacc5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8efc43c38666a38402c39f772da63fcf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a8efc43c38666a38402c39f772da63fcf">wait_and_pop</a> (T &amp;value)</td></tr>
<tr class="memdesc:a8efc43c38666a38402c39f772da63fcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">wait_and_pop 弹出队列元素  <a href="#a8efc43c38666a38402c39f772da63fcf">更多...</a><br /></td></tr>
<tr class="separator:a8efc43c38666a38402c39f772da63fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47a2d7726112b4e2d7b3f65a4e84aa06"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a47a2d7726112b4e2d7b3f65a4e84aa06">try_pop</a> (T &amp;value)</td></tr>
<tr class="memdesc:a47a2d7726112b4e2d7b3f65a4e84aa06"><td class="mdescLeft">&#160;</td><td class="mdescRight">wait_and_pop 弹出队列元素  <a href="#a47a2d7726112b4e2d7b3f65a4e84aa06">更多...</a><br /></td></tr>
<tr class="separator:a47a2d7726112b4e2d7b3f65a4e84aa06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a733361d5721c6ba64af3e129921c43b0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a733361d5721c6ba64af3e129921c43b0">size</a> () const</td></tr>
<tr class="memdesc:a733361d5721c6ba64af3e129921c43b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">size 返回元素个数  <a href="#a733361d5721c6ba64af3e129921c43b0">更多...</a><br /></td></tr>
<tr class="separator:a733361d5721c6ba64af3e129921c43b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06f9211f5225bb6413f403e8d14ca7ce"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classBlockingQueue.html#a06f9211f5225bb6413f403e8d14ca7ce">is_empty</a> () const</td></tr>
<tr class="memdesc:a06f9211f5225bb6413f403e8d14ca7ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">is_empty 判断队列是否为空  <a href="#a06f9211f5225bb6413f403e8d14ca7ce">更多...</a><br /></td></tr>
<tr class="separator:a06f9211f5225bb6413f403e8d14ca7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class BlockingQueue&lt; T &gt;</h3>

<p><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列(FIFO) </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a265931efcceccd5c99ac76178507559b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a265931efcceccd5c99ac76178507559b">&#9670;&nbsp;</a></span>BlockingQueue() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::<a class="el" href="classBlockingQueue.html">BlockingQueue</a> </td>
          <td>(</td>
          <td class="paramtype">std::initializer_list&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 初始化列表构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">args</td><td>初始化列表 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2f2b1e4d887d77a81fddabd44c5cdbfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f2b1e4d887d77a81fddabd44c5cdbfd">&#9670;&nbsp;</a></span>BlockingQueue() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::<a class="el" href="classBlockingQueue.html">BlockingQueue</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>rh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 拷贝构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rh</td><td><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a>&amp; 阻塞队列 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0d375ec5bec4f19887d0a4757d95e087"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d375ec5bec4f19887d0a4757d95e087">&#9670;&nbsp;</a></span>BlockingQueue() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::<a class="el" href="classBlockingQueue.html">BlockingQueue</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>rh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 复制构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rh</td><td><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a93c17143222334c4e4fe7035d4068bd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93c17143222334c4e4fe7035d4068bd0">&#9670;&nbsp;</a></span>back()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::back </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>back 得到最后一个元素 </p>
<dl class="section return"><dt>返回</dt><dd>最后一个元素 </dd></dl>

</div>
</div>
<a id="adc86e513ba273cfa07cf5293806df412"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc86e513ba273cfa07cf5293806df412">&#9670;&nbsp;</a></span>front()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::front </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>front 得到第一个元素 </p>
<dl class="section return"><dt>返回</dt><dd>第一个元素 </dd></dl>

</div>
</div>
<a id="a06f9211f5225bb6413f403e8d14ca7ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06f9211f5225bb6413f403e8d14ca7ce">&#9670;&nbsp;</a></span>is_empty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::is_empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>is_empty 判断队列是否为空 </p>
<dl class="section return"><dt>返回</dt><dd>true - 队列为空 </dd></dl>

</div>
</div>
<a id="aaee07bb9044a01b4cb0af75748795325"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaee07bb9044a01b4cb0af75748795325">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp; <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>rh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>operator= 赋值运算符 </p>
<dl class="section return"><dt>返回</dt><dd>rh <a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列的引用 </dd></dl>

</div>
</div>
<a id="abbe4440d6ed06d175925bba1f3c02312"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbe4440d6ed06d175925bba1f3c02312">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp; <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>rh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>operator= 赋值运算符 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rh</td><td><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="classBlockingQueue.html" title="BlockingQueue 阻塞队列(FIFO) ">BlockingQueue</a> 阻塞队列的引用 </dd></dl>

</div>
</div>
<a id="a1c824f8d644951d25bed9825794ddeae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c824f8d644951d25bed9825794ddeae">&#9670;&nbsp;</a></span>put() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::put </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>put 插入 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acedd6887a4af752440fb2dcd04292fa3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acedd6887a4af752440fb2dcd04292fa3">&#9670;&nbsp;</a></span>put() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::put </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&amp;&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>put 插入 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a733361d5721c6ba64af3e129921c43b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a733361d5721c6ba64af3e129921c43b0">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>size 返回元素个数 </p>
<dl class="section return"><dt>返回</dt><dd>元素个数 </dd></dl>

</div>
</div>
<a id="aac788baea510940fc40961a285bacc5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac788baea510940fc40961a285bacc5f">&#9670;&nbsp;</a></span>take()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::take </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>take 弹出队列元素 </p>
<dl class="section return"><dt>返回</dt><dd>队列元素 </dd></dl>

</div>
</div>
<a id="a47a2d7726112b4e2d7b3f65a4e84aa06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47a2d7726112b4e2d7b3f65a4e84aa06">&#9670;&nbsp;</a></span>try_pop()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::try_pop </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>wait_and_pop 弹出队列元素 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>弹出元素赋值对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8efc43c38666a38402c39f772da63fcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8efc43c38666a38402c39f772da63fcf">&#9670;&nbsp;</a></span>wait_and_pop()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classBlockingQueue.html">BlockingQueue</a>&lt; T &gt;::wait_and_pop </td>
          <td>(</td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>wait_and_pop 弹出队列元素 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>弹出元素赋值对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="blockingqueue_8hpp_source.html">blockingqueue.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
